
<div class="form-group">
 <div class="container">
 
<form class="form-horizontal" role="form" action="<?php echo site_url('haspem/ubah');?>/<?php echo $hasil->ID_LAPORAN; ?>" method="post">

<?php
if($this->session->userdata('role')==2 or $this->session->userdata('role')==3)
{
?>
<table class="table table-bordered table-condensed">
 <thead>
        <tr>
          <th>No</th>
          <th>Temuan</th>
          <th>Rencana Tindak Lanjut</th>
          <th>Target Penyelesaian</th>
		  <th>Keterangan</th>
        </tr>
      </thead>
	  <tbody>
        <tr>
		<td>I</td>
          <td><b>Sikap Tidak Aman</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="sta1" type="text" name="sta1" maxlength="50" value="<?php echo $hasil->S1; ?>" /></br>
		<input readonly class="form-control" id="sta2" type="text" name="sta2" maxlength="50" value="<?php echo $hasil->S2; ?>" /></br>
		<input readonly class="form-control" id="sta3" type="text" name="sta3" maxlength="50" value="<?php echo $hasil->S3; ?>" /></br>
		<input readonly class="form-control" id="sta4" type="text" name="sta4" maxlength="50" value="<?php echo $hasil->S4; ?>" /></br>
		<input readonly class="form-control" id="sta5" type="text" name="sta5" maxlength="50" value="<?php echo $hasil->S5; ?>" /></td>
		<td><input readonly class="form-control" id="rtl0" type="text" name="rtl0" maxlength="50" value="<?php echo $hasil->RTLS1; ?>" /></br>
		<input readonly class="form-control" id="rtl1" type="text" name="rtl1" maxlength="50" value="<?php echo $hasil->RTLS2; ?>" /></br>
		<input readonly class="form-control" id="rtl2" type="text" name="rtl2" maxlength="50" value="<?php echo $hasil->RTLS3; ?>" /></br>
		<input readonly class="form-control" id="rtl3" type="text" name="rtl3" maxlength="50" value="<?php echo $hasil->RTLS4; ?>" /></br>
		<input readonly class="form-control" id="rtl4" type="text" name="rtl4" maxlength="50" value="<?php echo $hasil->RTLS5; ?>" /></td>
		<td><input readonly class="form-control" id="tar1" type="text" name="tar1" maxlength="50" value="<?php echo $hasil->TLS1; ?>" /></br>
		<input readonly class="form-control" id="tar2" type="text" name="tar2" maxlength="50" value="<?php echo $hasil->TLS2; ?>" /></br>
		<input readonly class="form-control" id="tar3" type="text" name="tar3" maxlength="50" value="<?php echo $hasil->TLS3; ?>" /></br>
		<input readonly class="form-control" id="tar4" type="text" name="tar4" maxlength="50" value="<?php echo $hasil->TLS4; ?>" /></br>
		<input readonly class="form-control" id="tar5" type="text" name="tar5" maxlength="50" value="<?php echo $hasil->TLS5; ?>" /></td>
		<td>
		<input readonly class="form-control" id="ket1" type="text" name="ket1" maxlength="50" value="<?php echo $hasil->KETS1; ?>" /></br>
		<input readonly class="form-control" id="ket2" type="text" name="ket2" maxlength="50" value="<?php echo $hasil->KETS2; ?>" /></br>
		<input readonly class="form-control" id="ket3" type="text" name="ket3" maxlength="50" value="<?php echo $hasil->KETS3; ?>" /></br>
		<input readonly class="form-control" id="ket4" type="text" name="ket4" maxlength="50" value="<?php echo $hasil->KETS4; ?>" /></br>
		<input readonly class="form-control" id="ket5" type="text" name="ket5" maxlength="50"  value="<?php echo $hasil->KETS5; ?>"/>
</td>
		
		</tr>
		
		<tr>
		<td>II</td>
          <td><b>Kondisi Tidak Aman</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="kta1" type="text" name="kta1" maxlength="50" value="<?php echo $hasil->K1; ?>" /></br>
		<input readonly class="form-control" id="kta2" type="text" name="kta2" maxlength="50" value="<?php echo $hasil->K2; ?>" /></br>
		<input readonly class="form-control" id="kta3" type="text" name="kta3" maxlength="50" value="<?php echo $hasil->K3; ?>" /></br>
		<input readonly class="form-control" id="kta4" type="text" name="kta4" maxlength="50" value="<?php echo $hasil->K4; ?>" /></br>
		<input readonly class="form-control" id="kta5" type="text" name="kta5" maxlength="50" value="<?php echo $hasil->K5; ?>" /></td>
		<td><input readonly class="form-control" id="rtl6" type="text" name="rt5" maxlength="50" value="<?php echo $hasil->RTLK1; ?>" /></br>
		<input readonly class="form-control" id="rtl7" type="text" name="rt6" maxlength="50" value="<?php echo $hasil->RTLK2; ?>" /></br>
		<input readonly class="form-control" id="rtl8" type="text" name="rt7" maxlength="50" value="<?php echo $hasil->RTLK3; ?>" /></br>
		<input readonly class="form-control" id="rtl9" type="text" name="rt8" maxlength="50" value="<?php echo $hasil->RTLK4; ?>" /></br>
		<input readonly class="form-control" id="rtl10" type="text" name="rt9" maxlength="50" value="<?php echo $hasil->RTLK5; ?>" /></td>
		<td><input readonly class="form-control" id="tar6" type="text" name="tar6" maxlength="50" value="<?php echo $hasil->TLK1; ?>" /></br>
		<input readonly class="form-control" id="tar7" type="text" name="tar7" maxlength="50" value="<?php echo $hasil->TLK2; ?>" /></br>
		<input readonly class="form-control" id="tar8" type="text" name="tar8" maxlength="50" value="<?php echo $hasil->TLK3; ?>" /></br>
		<input readonly class="form-control" id="tar9" type="text" name="tar9" maxlength="50" value="<?php echo $hasil->TLK4; ?>" /></br>
		<input readonly class="form-control" id="tar10" type="text" name="tar10" maxlength="50" value="<?php echo $hasil->TLK5; ?>" /></td>
		<td>
		<input readonly class="form-control" id="ket6" type="text" name="ket6" maxlength="50" value="<?php echo $hasil->KETK1; ?>" /></br>
		<input readonly class="form-control" id="ket7" type="text" name="ket7" maxlength="50" value="<?php echo $hasil->KETK2; ?>" /></br>
		<input readonly class="form-control" id="ket8" type="text" name="ket8" maxlength="50" value="<?php echo $hasil->KETK3; ?>" /></br>
		<input readonly class="form-control" id="ket9" type="text" name="ket9" maxlength="50" value="<?php echo $hasil->KETK4; ?>" /></br>
		<input readonly class="form-control" id="ket10" type="text" name="ket10" maxlength="50" value="<?php echo $hasil->KETK5; ?>" />
</td>
		
		</tr>
		
		<tr>
		<td>III</td>
          <td><b>Lingkungan Kerja</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="lk1" type="text" name="lk1" maxlength="50" value="<?php echo $hasil->G1; ?>" /></br>
		<input readonly class="form-control" id="lk2" type="text" name="lk2" maxlength="50" value="<?php echo $hasil->G2; ?>" /></br>
		<input readonly class="form-control" id="lk3" type="text" name="lk3" maxlength="50" value="<?php echo $hasil->G3; ?>" /></br>
		<input readonly class="form-control" id="lk4" type="text" name="lk4" maxlength="50" value="<?php echo $hasil->G4; ?>" /></br>
		<input readonly class="form-control" id="lk5" type="text" name="lk5" maxlength="50" value="<?php echo $hasil->G5; ?>" /></td>
		<td><input readonly class="form-control" id="rtl11" type="text" name="rt11" maxlength="50" value="<?php echo $hasil->RTLG1; ?>" /></br>
		<input readonly class="form-control" id="rtl12" type="text" name="rt12" maxlength="50" value="<?php echo $hasil->RTLG2; ?>" /></br>
		<input readonly class="form-control" id="rtl13" type="text" name="rt13" maxlength="50" value="<?php echo $hasil->RTLG3; ?>" /></br>
		<input readonly class="form-control" id="rtl14" type="text" name="rt14" maxlength="50" value="<?php echo $hasil->RTLG4; ?>" /></br>
		<input readonly class="form-control" id="rtl15" type="text" name="rt15" maxlength="50" value="<?php echo $hasil->RTLG5; ?>" /></td>
		<td><input readonly class="form-control" id="tar11" type="text" name="tar11" maxlength="50" value="<?php echo $hasil->TLG1; ?>" /></br>
		<input readonly class="form-control" id="tar12" type="text" name="tar12" maxlength="50" value="<?php echo $hasil->TLG2; ?>" /></br>
		<input readonly class="form-control" id="tar13" type="text" name="tar13" maxlength="50" value="<?php echo $hasil->TLG3; ?>" /></br>
		<input readonly class="form-control" id="tar14" type="text" name="tar14" maxlength="50" value="<?php echo $hasil->TLG4; ?>" /></br>
		<input readonly class="form-control" id="tar15" type="text" name="tar15" maxlength="50" value="<?php echo $hasil->TLG5; ?>" /></td>
		<td>
		<input readonly class="form-control" id="ket11" type="text" name="ket11" maxlength="50" value="<?php echo $hasil->KETG1; ?>" /></br>
		<input readonly class="form-control" id="ket12" type="text" name="ket12" maxlength="50" value="<?php echo $hasil->KETG2; ?>" /></br>
		<input readonly class="form-control" id="ket13" type="text" name="ket13" maxlength="50" value="<?php echo $hasil->KETG3; ?>" /></br>
		<input readonly class="form-control" id="ket14" type="text" name="ket14" maxlength="50" value="<?php echo $hasil->KETG4; ?>" /></br>
		<input readonly class="form-control" id="ket15" type="text" name="ket15" maxlength="50" value="<?php echo $hasil->KETG5; ?>" />
</td>
		
		</tr>
		</table>
		Nama Anggota     </br>
        <input readonly class="form-control" id="nama1" type="text" name="nama1" maxlength="50" value="<?php echo $hasil->ANGGOTA; ?>"/>
        <input readonly class="form-control" id="nama2" type="text" name="nama2" maxlength="50" value="<?php echo $hasil->ANGGOTA2; ?>"/>
</br></br>
<?php
}
else
{
?>
 <table class="table table-bordered table-condensed">
 <thead>
        <tr>
          <th>No</th>
          <th>Temuan</th>
          <th>Rencana Tindak Lanjut</th>
          <th>Target Penyelesaian</th>
		  <th>Keterangan</th>
        </tr>
      </thead>
	  <tbody>
        <tr>
		<td>I</td>
          <td><b>Sikap Tidak Aman</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="sta1" type="text" name="sta1" maxlength="50" value="<?php echo $hasil->S1; ?>" /></br>
		<input class="form-control" id="sta2" type="text" name="sta2" maxlength="50" value="<?php echo $hasil->S2; ?>" /></br>
		<input class="form-control" id="sta3" type="text" name="sta3" maxlength="50" value="<?php echo $hasil->S3; ?>" /></br>
		<input class="form-control" id="sta4" type="text" name="sta4" maxlength="50" value="<?php echo $hasil->S4; ?>" /></br>
		<input class="form-control" id="sta5" type="text" name="sta5" maxlength="50" value="<?php echo $hasil->S5; ?>" /></td>
		<td><input class="form-control" id="rtl0" type="text" name="rtl0" maxlength="50" value="<?php echo $hasil->RTLS1; ?>" /></br>
		<input class="form-control" id="rtl1" type="text" name="rtl1" maxlength="50" value="<?php echo $hasil->RTLS2; ?>" /></br>
		<input class="form-control" id="rtl2" type="text" name="rtl2" maxlength="50" value="<?php echo $hasil->RTLS3; ?>" /></br>
		<input class="form-control" id="rtl3" type="text" name="rtl3" maxlength="50" value="<?php echo $hasil->RTLS4; ?>" /></br>
		<input class="form-control" id="rtl4" type="text" name="rtl4" maxlength="50" value="<?php echo $hasil->RTLS5; ?>" /></td>
		<td><input class="form-control" id="tar1" type="text" name="tar1" maxlength="50" value="<?php echo $hasil->TLS1; ?>" /></br>
		<input class="form-control" id="tar2" type="text" name="tar2" maxlength="50" value="<?php echo $hasil->TLS2; ?>" /></br>
		<input class="form-control" id="tar3" type="text" name="tar3" maxlength="50" value="<?php echo $hasil->TLS3; ?>" /></br>
		<input class="form-control" id="tar4" type="text" name="tar4" maxlength="50" value="<?php echo $hasil->TLS4; ?>" /></br>
		<input class="form-control" id="tar5" type="text" name="tar5" maxlength="50" value="<?php echo $hasil->TLS5; ?>" /></td>
		<td>
		<input class="form-control" id="ket1" type="text" name="ket1" maxlength="50" value="<?php echo $hasil->KETS1; ?>" /></br>
		<input class="form-control" id="ket2" type="text" name="ket2" maxlength="50" value="<?php echo $hasil->KETS2; ?>" /></br>
		<input class="form-control" id="ket3" type="text" name="ket3" maxlength="50" value="<?php echo $hasil->KETS3; ?>" /></br>
		<input class="form-control" id="ket4" type="text" name="ket4" maxlength="50" value="<?php echo $hasil->KETS4; ?>" /></br>
		<input class="form-control" id="ket5" type="text" name="ket5" maxlength="50"  value="<?php echo $hasil->KETS5; ?>"/>
</td>
		
		</tr>
		
		<tr>
		<td>II</td>
          <td><b>Kondisi Tidak Aman</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="kta1" type="text" name="kta1" maxlength="50" value="<?php echo $hasil->K1; ?>" /></br>
		<input class="form-control" id="kta2" type="text" name="kta2" maxlength="50" value="<?php echo $hasil->K2; ?>" /></br>
		<input class="form-control" id="kta3" type="text" name="kta3" maxlength="50" value="<?php echo $hasil->K3; ?>" /></br>
		<input class="form-control" id="kta4" type="text" name="kta4" maxlength="50" value="<?php echo $hasil->K4; ?>" /></br>
		<input class="form-control" id="kta5" type="text" name="kta5" maxlength="50" value="<?php echo $hasil->K5; ?>" /></td>
		<td><input class="form-control" id="rtl6" type="text" name="rt5" maxlength="50" value="<?php echo $hasil->RTLK1; ?>" /></br>
		<input class="form-control" id="rtl7" type="text" name="rt6" maxlength="50" value="<?php echo $hasil->RTLK2; ?>" /></br>
		<input class="form-control" id="rtl8" type="text" name="rt7" maxlength="50" value="<?php echo $hasil->RTLK3; ?>" /></br>
		<input class="form-control" id="rtl9" type="text" name="rt8" maxlength="50" value="<?php echo $hasil->RTLK4; ?>" /></br>
		<input class="form-control" id="rtl10" type="text" name="rt9" maxlength="50" value="<?php echo $hasil->RTLK5; ?>" /></td>
		<td><input class="form-control" id="tar6" type="text" name="tar6" maxlength="50" value="<?php echo $hasil->TLK1; ?>" /></br>
		<input class="form-control" id="tar7" type="text" name="tar7" maxlength="50" value="<?php echo $hasil->TLK2; ?>" /></br>
		<input class="form-control" id="tar8" type="text" name="tar8" maxlength="50" value="<?php echo $hasil->TLK3; ?>" /></br>
		<input class="form-control" id="tar9" type="text" name="tar9" maxlength="50" value="<?php echo $hasil->TLK4; ?>" /></br>
		<input class="form-control" id="tar10" type="text" name="tar10" maxlength="50" value="<?php echo $hasil->TLK5; ?>" /></td>
		<td>
		<input class="form-control" id="ket6" type="text" name="ket6" maxlength="50" value="<?php echo $hasil->KETK1; ?>" /></br>
		<input class="form-control" id="ket7" type="text" name="ket7" maxlength="50" value="<?php echo $hasil->KETK2; ?>" /></br>
		<input class="form-control" id="ket8" type="text" name="ket8" maxlength="50" value="<?php echo $hasil->KETK3; ?>" /></br>
		<input class="form-control" id="ket9" type="text" name="ket9" maxlength="50" value="<?php echo $hasil->KETK4; ?>" /></br>
		<input class="form-control" id="ket10" type="text" name="ket10" maxlength="50" value="<?php echo $hasil->KETK5; ?>" />
</td>
		
		</tr>
		
		<tr>
		<td>III</td>
          <td><b>Lingkungan Kerja</b></td>
          </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="lk1" type="text" name="lk1" maxlength="50" value="<?php echo $hasil->G1; ?>" /></br>
		<input class="form-control" id="lk2" type="text" name="lk2" maxlength="50" value="<?php echo $hasil->G2; ?>" /></br>
		<input class="form-control" id="lk3" type="text" name="lk3" maxlength="50" value="<?php echo $hasil->G3; ?>" /></br>
		<input class="form-control" id="lk4" type="text" name="lk4" maxlength="50" value="<?php echo $hasil->G4; ?>" /></br>
		<input class="form-control" id="lk5" type="text" name="lk5" maxlength="50" value="<?php echo $hasil->G5; ?>" /></td>
		<td><input class="form-control" id="rtl11" type="text" name="rt11" maxlength="50" value="<?php echo $hasil->RTLG1; ?>" /></br>
		<input class="form-control" id="rtl12" type="text" name="rt12" maxlength="50" value="<?php echo $hasil->RTLG2; ?>" /></br>
		<input class="form-control" id="rtl13" type="text" name="rt13" maxlength="50" value="<?php echo $hasil->RTLG3; ?>" /></br>
		<input class="form-control" id="rtl14" type="text" name="rt14" maxlength="50" value="<?php echo $hasil->RTLG4; ?>" /></br>
		<input class="form-control" id="rtl15" type="text" name="rt15" maxlength="50" value="<?php echo $hasil->RTLG5; ?>" /></td>
		<td><input class="form-control" id="tar11" type="text" name="tar11" maxlength="50" value="<?php echo $hasil->TLG1; ?>" /></br>
		<input class="form-control" id="tar12" type="text" name="tar12" maxlength="50" value="<?php echo $hasil->TLG2; ?>" /></br>
		<input class="form-control" id="tar13" type="text" name="tar13" maxlength="50" value="<?php echo $hasil->TLG3; ?>" /></br>
		<input class="form-control" id="tar14" type="text" name="tar14" maxlength="50" value="<?php echo $hasil->TLG4; ?>" /></br>
		<input class="form-control" id="tar15" type="text" name="tar15" maxlength="50" value="<?php echo $hasil->TLG5; ?>" /></td>
		<td>
		<input class="form-control" id="ket11" type="text" name="ket11" maxlength="50" value="<?php echo $hasil->KETG1; ?>" /></br>
		<input class="form-control" id="ket12" type="text" name="ket12" maxlength="50" value="<?php echo $hasil->KETG2; ?>" /></br>
		<input class="form-control" id="ket13" type="text" name="ket13" maxlength="50" value="<?php echo $hasil->KETG3; ?>" /></br>
		<input class="form-control" id="ket14" type="text" name="ket14" maxlength="50" value="<?php echo $hasil->KETG4; ?>" /></br>
		<input class="form-control" id="ket15" type="text" name="ket15" maxlength="50" value="<?php echo $hasil->KETG5; ?>" />
</td>
		
		</tr>
		</table>
		NIK Anggota     </br>
        <input class="form-control" id="nama1" type="text" name="nama1" maxlength="50" value="<?php echo $hasil->ANGGOTA; ?>"/>
        <input class="form-control" id="nama2" type="hidden" name="nama2" maxlength="50" value="<?php echo $hasil->ANGGOTA2; ?>"/>
</br></br>
<?php
}
?>
		Pengawas Telah Memvalidasi
		<?php
		if($this->session->userdata('role')==3)
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			else
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			?>
			Sekretaris Telah Memvalidasi
			<?php
			if($hasil->STATUS==1)
			{
			?>
			<input name="skertaris" type="checkbox" value="1" checked></br></br>
			<?php
			}
			else
			{
			?>
			<input name="skertaris" type="checkbox" value="1"></br></br>
			<?php
			}
		}
		else if($this->session->userdata('role')==1)
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			else
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			?>
			Sekretaris Telah Memvalidasi
			<?php
			if($hasil->STATUS==1)
			{
			?>
			<input disabled name="skertaris" type="checkbox" value="1" checked></br></br>
			<input name="skertaris" type="hidden" value="1"></br></br>
			<?php
			}
			else
			{
			?>
			<input disabled name="skertaris" type="checkbox" value="1"></br></br>
			<input name="skertaris" type="hidden" value="0"></br></br>
			<?php
			}
		}
		else
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<?php
			}
			else
			{
			?>
			<input name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<?php
			}
		}
		?>
		<input name="submit" type="submit" class="btn btn-primary" value="Kirim"/>
		</form>
		
		</div></body></html>